package com.info33.platform.business.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.business.app.entity.AppBanner;
import com.info33.platform.business.app.util.enmus.AppBannerEnum;
import com.info33.platform.common.mvc.vo.Result;

import java.util.List;

/**
 * @author admin
 */
public interface AppBannerService extends IService<AppBanner> {

    /**
     * app - 获取轮播图
     *
     * @param page-
     * @param type-
     * @param tid-
     * @return -
     */
    IPage<AppBanner> pcBanner(Page<AppBanner> page, AppBannerEnum type, Long tid);

    /**
     * app - 获取轮播图
     *
     * @param type-
     * @param tid-
     * @return -
     */
    List<AppBanner> pcBanner(AppBannerEnum type, Long tid);

    /**
     * 编辑
     *
     * @param appBanner-
     * @return -
     */
    Result<Object> pcEdit(AppBanner appBanner);

    /**
     * 删除
     *
     * @param id-
     * @return -
     */
    Result<Object> pcRemove(Long id);
}